

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Diary List</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="create" action="create">New Diary</g:link></span>
        </div>
        <div class="body">
            <h1>Diary List</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                    <g:each in="${diaryInstanceList}" status="i" var="diaryInstance">
                        
                            Id: ${fieldValue(bean:diaryInstance, field:'id')}</br>
                            Title: <g:link action="show" id="${diaryInstance.id}">${fieldValue(bean:diaryInstance, field:'title')}</g:link></br>
                            
                        
                            Text: <pre>${fieldValue(bean:diaryInstance, field:'text')}</pre>
                            Date: ${fieldValue(bean:diaryInstance, field:'date')}</br>
                            
                    </g:each>
            </div>
        </div>
    </body>
</html>
